package com.shangdiao.sd_server.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shangdiao.sd_server.dao.mybatis.SdAdminMapper;
import com.shangdiao.sd_server.generator.pojo.SdAdmin;
import com.shangdiao.sd_server.generator.pojo.SdAdminExample;
import com.shangdiao.sd_server.service.AdminService;

@Service(value = "adminService")
public class AdminServiceImpl implements AdminService {

	@Autowired
	SdAdminMapper adminMapper;
	
	@Override
	public List<SdAdmin> selectAdmin(SdAdminExample example) {
		return adminMapper.selectByExample(example);
	}

	@Override
	public int updateAdmin(SdAdmin admin) {
		return adminMapper.updateByPrimaryKeySelective(admin);
	}
	
    

}
